export function reducer(state, action) {
  console.log('reducer....');  
  console.log(state, action);
    switch(action.type){
      case 'setCurrentTab':
        return { ...state, currentTab:action.payload };
      case 'setCurrentTag':
        return { ...state, currentTag:action.payload };
      case 'setWidth':
        return { ...state, width:action.payload };
      case 'changeValue':
        return { ...state, value:'world' };
      default:
        return { ...state };  
    }
}
